Last updated: 2022-07-19
Checks: 6 1
Knit directory: mapme.protectedareas/
This reproducible R Markdown analysis was created with workflowr (version 1.7.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.
The R Markdown file has staged changes. To know which version of the R Markdown file created these results, you’ll want to first commit it to the Git repo. If you’re still working on the analysis, you can ignore this warning. When you’re finished, you can run wflow_publish to commit the R Markdown file and build the HTML.
Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.
The command set.seed(20210305) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.
Great job! Recording the operating system, R version, and package versions is critical for reproducibility.
Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.
Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
The results in this page were generated with repository version 6050648. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.
Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:
Ignored files:
Ignored: .RData
Ignored: .Rhistory
Ignored: .Rproj.user/
Untracked files:
Untracked: analysis/table_cells_overlapping_wdpa.Rmd
Staged changes:
Modified: analysis/map_cells_overlapping_wdpa.Rmd
Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.
These are the previous versions of the repository in which changes were made to the R Markdown (analysis/map_cells_overlapping_wdpa.Rmd) and HTML (docs/map_cells_overlapping_wdpa.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.
| File | Version | Author | Date | Message |
|---|---|---|---|---|
| Rmd | 6050648 | Yota Eilers | 2022-07-19 | add table with number of obs |
| html | 6050648 | Yota Eilers | 2022-07-19 | add table with number of obs |
| Rmd | cae0dea | Yota Eilers | 2022-06-23 | New map to check cells with multiple PAs |
| html | cae0dea | Yota Eilers | 2022-06-23 | New map to check cells with multiple PAs |
Reasons for this can be:
Only cells that cause issues in our analysis, i.e. cells for which assigned PAs have had a project starting in the same year.
Example for illustration: Say, we have the following cells:
Now, say PAs “1” and “2” both have a project starting in the same year; PAs “3” and “4” have projects starting in different years. In that case, cell “12345” is shown in the map below, cell “23456” is not. Reason: The correct (for our analysis) WDPA ID can be identified for cell “23456” by filtering by project start year. For cell “12345”, this is not possible.
This table shows the number of treatment cells with multiple assigned PAs (WDPA IDs) for each matching frame (year).
| Matching frame (Year) | Cells with multiple WDPA IDs | Total number of treated cells |
|---|---|---|
| 2005 | 11 | 938 |
| 2006 | 250 | 11863 |
| 2007 | 155 | 22846 |
| 2008 | 161 | 9866 |
| 2009 | 152 | 1407 |
| 2010 | 23 | 1793 |
| 2011 | 34 | 3170 |
| 2012 | 50 | 11678 |
| 2013 | 3 | 507 |
| 2015 | 2606 | 124863 |
| 2016 | 870 | 2575 |
| 2019 | 7 | 1816 |
The following plot displays the number of observations vs. the number of WDPA IDs assigned to a cell. This plot does not show cells that have only one assigned WDPA ID. Most cells that have multiple WDPA IDs have only two corresponding WDPA IDs.
This map shows treatment cells that have multiple assigned PAs (WDPA IDs).